package com.apes.oap.response;

import com.apes.oap.RopRequestContext;
import com.apes.oap.message.MainMessages;
import com.apes.oap.message.MessageType;

/**
 * <pre>
 *   当服务平台资源耗尽（超过最大线程数且列队排满后）
 * </pre>
 *
 * @version 1.0
 */
public class RejectedServiceResponse extends OapResponse<Object> {

	public RejectedServiceResponse(RopRequestContext context) {
		OapResponse<String> response = MainMessages.get(MessageType.FORBIDDEN_REQUEST, context.getLocale(), context.getMethod(), context.getVersion());
		this.setHeader(response.getHeader()).setBody(response.getBody());
	}
}
